package com.gec.auction.service;

import com.gec.auction.pojo.Auction;
import com.gec.auction.pojo.AuctionCustomer;
import com.gec.auction.pojo.Auctionrecord;
import com.gec.auction.tools.AuctionCustomerException;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

/**
 * @author Irene_baebae
 * @version 1.0
 */
@Service
public interface AuctionService {
    List<Auction> getAuction(Auction condition, String auctionname, String auctiondesc, BigDecimal auctionstartprice);

    Auction getAuctionById(int auctionId);

    int addAuction(Auction auction);

    int deleteByPrimaryKey(Long auctionId);

    //添加竞拍记录
    void addAuctionRecored(Auctionrecord record) throws AuctionCustomerException;


    /**
     * 拍卖已经结束的商品
     * @return
     */
    List<AuctionCustomer> selectAuctionEndTime();

    /**
     * 正在拍卖的商品
     * @return
     */
    List<Auction> selectAuctionNoEndTime();
}
